Ext.onReady(function() {    
var dialog = new Ext.ux.UploadDialog.Dialog(    
{ url: 'upload',
  reset_on_hide: false,
  allow_close_on_upload: true,
  upload_autostart: false
});    
dialog.show('my-dlg'); 
});  